from models.base import BaseModel, db


class AlbumDyVersion(BaseModel):
    __tablename__ = 'album_dy_version'
    __table_args__ = {'comment': '短剧抖音版本表模型'}

    id = db.Column(db.BigInteger, primary_key=True, autoincrement=True)
    album_info_id = db.Column(db.BigInteger, nullable=False, comment='短剧信息ID')
    album_info_all = db.Column(db.JSON, nullable=False, comment='短剧信息')
    dy_version = db.Column(db.String(255), nullable=False, comment='抖音版本号')
    scope_list = db.Column(db.JSON, nullable=False, comment='短剧信息')
    audit_status = db.Column(db.String(255), nullable=False, comment='审核状态')
    audit_msg = db.Column(db.Text, nullable=False, comment='审核备注')
